<?php
 $Phone = $_POST["userPhone"];
 $Pwd = $_POST["userPwd"];

    $conn = mysql_connect("localhost","root","123456");

    mysql_select_db("dickies");

   
    
    $result = mysql_query("SELECT * FROM user WHERE userphone='$Phone' AND userpwd='$Pwd'",$conn);
    if(mysql_num_rows($result)>0){
        echo 1;
    }else{
        echo 0;
    }


    mysql_close($conn);
?>